﻿<!--<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}" />-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="/Medical_Instrument/statics/h-ui.admin/css/style.css" />

<title>图片展示</title>
<link href="/Medical_Instrument/statics/lib/lightbox2/2.8.1/css/lightbox.css"
	rel="stylesheet" type="text/css">
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>
		图片管理 <span class="c-gray en">&gt;</span> 图片展示 <a
			class="btn btn-success radius r"
			style="line-height:1.6em;margin-top:3px"
			href="javascript:location.replace(location.href);" title="刷新"><i
			class="Hui-iconfont">&#xe68f;</i> </a>
	</nav>
	<div class="page-container">
		<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l"> <span onclick="deletePic()"
				class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i>
					删除</span> <span onclick="downloadPic()"
				class="btn btn-primary radius"><i class="Hui-iconfont">&#xe6df;</i>
					下载</span> </span>
		</div>
		<div class="portfolio-content">
			<ul class="cl portfolio-area">
			</ul>
		</div>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="/Medical_Instrument/statics/lib/lightbox2/2.8.1/js/lightbox.min.js"></script>
	<script type="text/javascript"
		src="/Medical_Instrument/statics/js/gsp/picture_manager/picture_manager.js"></script>
	
	<script type="text/javascript">
		$(function() {
			$(".portfolio-area li").Huihover();
			$
					.ajax({
						type : "POST",
						url : "${path}/businessLicense/getPicByEnterpriseNo",
						data : {
							"enterpriseNo" : parent.data
						},
						dataType : "json",
						success : function(data) {
							if (data != null) {
								var content = "";
								for ( var i = 0; i < data.length; i++) {
									var string = "<li class='item'><div class='portfoliobox'>"
											+ "<input class='checkbox' type='checkbox'>"
											+ "<div class='picbox'><a href='"+data[i].picUrl+"' data-lightbox='gallery' data-title=''><img src="+data[i].picUrl+"></a></div>"
											+ "<div class='textbox'></div></div></li>";
									content += string;
								}
								$(".portfolio-area").html(content);
							}
						},
						error : function(data) {
							layer.msg('请求失败,请稍后再试!', {
								icon : 5,
								time : 1500
							});
						}
					});

		});
	</script>
</body>
</html>